package com.blacksee.bluetoothpoker.network;

import java.util.Hashtable;

import com.blacksee.bluetoothpoker.network.messages.NetMessage;

public interface NetworkInterface {

	public int getMyId();
	public String getMyName();
	public void setMyName(String name);
	
	public void betAction(int amount, boolean isAllIn) throws BlueNetException;
	public void foldAction() throws BlueNetException;
	public void checkAction() throws BlueNetException;
	public void callAction(boolean isAllIn) throws BlueNetException;
	
	public void showCards(String cards, int value) throws BlueNetException;
	public void askForCards(int number) throws BlueNetException;
		
	public void joinGame(TableBean tableID) throws BlueNetException;
	public void createGame(String name);
	public void acceptPlayer(String name, int id) throws BlueNetException;
	public void findTables();
	public void startGame(Hashtable players) throws BlueNetException;
	public void quitGame() throws BlueNetException;
	
	public void receiveMssage(String msg, int senderID);
	public NetMessage popMssage();
	
	void setMessageSender(IMessageSender sender);
	public void receiveMssage(NetMessage objMssg);
		
}
